package cn.udrm.elasticsearch.fileread;

import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

public class ZipReadContent {

    public static void unZip(File file) throws IOException {
        ZipFile zf = new ZipFile(file, Charset.forName("GBK"));
        Enumeration<?> e = zf.entries();
        while(e.hasMoreElements()) {
            ZipEntry zipEntry = (ZipEntry) e.nextElement();
            if(zipEntry.isDirectory()){

            }else{

            }
        }
    }
}
